package com.yisu.auction.manager.core.mapper;



import com.yisu.auction.ewf.entity.Prize;
import com.yisu.auction.ewf.entity.PrizeArchive;

import java.util.List;

public interface PrizeArchiveMapper {
    int insert(Prize record);

    PrizeArchive selectByPrimaryKey(Long id);

    int insertSelective(Prize record);

    int deleteByPrimaryKey(Long id);

    int insertPrizeArchiveSelective(PrizeArchive record);

    int updateByPrimaryKeySelective(Prize record);

    /**
     * author: 赵杰
     * Business Description：获取归档数据计量
     * @return
     */
    int getArchiveFileCount();


    /**
     * author: 赵杰
     * Business Description：获取归档数据，逐条获取
     * @return
     */
    PrizeArchive getArchiveFileByOne(List<Long> prizeIds);

    /**
     * author: 赵杰
     * Business Description：获取真实用户购买prizeId
     * @return
     */
    List<Long> getTrueUserBuyPrizeId();
}